﻿/*
 * Класс-помошник для организации межклассового взаимодействия
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Imaging;
using System.Windows.Forms;

namespace DiplomNN
{
    class Helper
    {
        public static Image ImageFromStartFormVideoPB = null;
        public static Image ImageFromStartFormFiltered = null;
        public static Image ImageFromStartFormFilteredBinary = null;
        public static Image ImageFromStartFormScaledBunary = null;
        public static int ChekButFromStartForm = 1;

        public static Image ImageFilteredRGBPB = null;
        public static Image ImageFilteredHSVPB = null;
        public static Image ImageFilteredYCbCrPB = null;

        public static double ColorsSettFrRmax = 0;
        public static double ColorsSettFrRmin = 0;
        public static double ColorsSettFrGmax = 0;
        public static double ColorsSettFrGmin = 0;
        public static double ColorsSettFrB = 0;
        public static double ColorsSettFrRG = 0;

        public static double ColorsSettFrHmax = 0;
        public static double ColorsSettFrHmin = 0;
        public static double ColorsSettFrSmax = 0;
        public static double ColorsSettFrSmin = 0;
        public static double ColorsSettFrVmax = 0;
        public static double ColorsSettFrVmin = 0;

        public static double ColorsSettFrYmax = 0;
        public static double ColorsSettFrYmin = 0;
        public static double ColorsSettFrCbmax = 0;
        public static double ColorsSettFrCbmin = 0;
        public static double ColorsSettFrCrmax = 0;
        public static double ColorsSettFrCrmin = 0;

        public static bool IsActiveColorsSettingsForm = false;
        public static bool IsActiveTrainingForm = false;
        public static bool IsTrainedNNMP = false;
        public static bool IsTrainedNNHopfild = false;
        public static bool IsSelectedMP = true;
        public static bool IsSelectedHopfild = false;
        public static int MethodNumberColorsSettingsForm = 1;

        public static string[] Directories;
        public static TrainPicture[] ArrPict;
        public static string NamePictureRecognized = "Сеть не обучена";

        public static double[,] Wij;
        public static double[,] Wjk;
        public static double[] Tj;
        public static double[] Tk;

        public static int L3 = 0;

        public static string LoadPathTrainNN = "";
        public static string HopfildDirPath = "";
        public static string NameNewPicture = "";
        public static Image SaveImage = null;
        public static double[,] GlobalArrayNN = new double[2500, 2500];


       

    }
}
